import 'package:flutter/material.dart';

import 'base_card.dart';

///分享联名卡
class CardShare extends BaseCard {
  @override
  _CardShareState createState() => _CardShareState();
}

class _CardShareState extends BaseCardState {
  @override
  void initState() {
    super.initState();
  }

  @override
  topTitle(String title) {
    return super.topTitle('分享联名卡');
  }

  @override
  topTitle2() {
    return Padding(
        padding: EdgeInsets.only(bottom: 5),
        child: Text(' / 第19期', style: TextStyle(fontSize: 10)));
  }

  @override
  subTitle(String title) {
    return super.subTitle(('分享给朋友最多可获取12天无限卡'));
  }

  @override
  bottomContent() {
    return Expanded(
        child: Container(
            margin: EdgeInsets.only(top: 20),
            decoration: BoxDecoration(color: Color(0xfff6f7f9)),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.end,
              children: [
                Expanded(
                    child: Padding(
                  padding: EdgeInsets.only(top: 20, left: 15, bottom: 20),
                  child: Image.network(
                      'http://www.devio.org/io/flutter_beauty/card_list.png'),
                )),
                Container(
                  alignment: AlignmentDirectional.center,
                  child: Padding(
                    padding: EdgeInsets.only(bottom: 20),
                    child: bottomTitle('29743043人 * 参与活动'),
                  ),
                )
              ],
            )));
  }
}
